import 'package:json_annotation/json_annotation.dart';

part 'login_req.g.dart';

@JsonSerializable()
class LoginReq {
  final String? captchaVerification;
  final String? username;
  final String? password;
  final int? socialType;
  final String? socialCode;
  final String? socialState;
  final bool? socialCodeValid;

  const LoginReq({
    this.captchaVerification,
    this.username,
    this.password,
    this.socialType,
    this.socialCode,
    this.socialState,
    this.socialCodeValid,
  });

  factory LoginReq.fromJson(Map<String, dynamic> json) =>
      _$LoginReqFromJson(json);

  Map<String, dynamic> toJson() => _$LoginReqToJson(this);
}

